package com.springframework.sample.p1.ioc.c1.bean;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class TestBean{

    private final static Logger log = LoggerFactory.getLogger(TestBean.class);
    
    private String test;

    public TestBean(){
    }
    
    public TestBean(String test){
        this.test = test;
    }
    
    public String toString(){
        return ToStringBuilder.reflectionToString(this).toString();
    }
    
    public void initMethodeTest(){
        log.debug("Init méthode");
    }
    
    public void initMethodeTest2(){
        log.debug("Init méthode - lazy init");
    }
    
    public void destroyMethodeTest(){
        log.debug("Close méthode");
    }
    

    // GETTER / SETTER
    public String getTest(){
        return test;
    }

    public void setTest(String test){
        this.test = test;
    }
}